﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

// ReSharper disable once CheckNamespace
namespace System;

public static class Extends {
  /// <summary>
  /// 将字符拼接为一个字符串(默认拼接符为空格)
  /// </summary>
  public static string Join (this string[] arr, string separator = " ") {
    if (arr == null || arr.Length == 0) return string.Empty;
    return string.Join(separator, arr);
  }
}